<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>I2c</title>
</head><body>#列出I2C总线<br/>
i2cdetect -l<br/>
#列出I2C总线上的设备<br/>
i2cdetect -y -r 1<br/>
#打印I2C设备的寄存器信息<br/>
i2cdump -f -y 1 0x49<br/>
#设置寄存器<br/>
i2cset -f -y 1 0x49 0x23 0x05</body></html>